<template>
  <u-modal :show="value" :title="title" :content="content" @confirm="confirm" @cancel="cancel"
     :showCancelButton="showCancelButton" :closeOnClickOverlay="closeOnClickOverlay"
  ></u-modal>
</template>

<script>
  import UModal from '@/uni_modules/uview-ui/components/u-modal/props.js'
  export default {
    props: {
      ...UModal.props,
      title: {
        type: String,
        default: '提示'
      },
      content: {
        type: String,
        default: '确认删除吗？'
      },
      value: {
        type: Boolean,
        default: false
      }
    },
    methods: {
      confirm() {
        this.$emit('confirm')
      },
      cancel() {
        this.$emit('input', false)
      }
    }
  }
</script>

<style>
</style>